package com.lfy.modules.blog.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName blog_article
 */
@TableName(value ="blog_article")
@Data
public class ArticleEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "title")
    private String title;
    /**
     * 文章分类
     */
    @TableField(value = "classification")
    private String classification;

    /**
     * 标签
     */
    @TableField(value = "tag_id")
    private String tagId;

    /**
     * 文章展示内容
     */
    @TableField(value = "article_content")
    private String articleContent;

    /**
     * 文章封面
     */
    @TableField(value = "article_images")
    private String articleImages;

    /**
     * 文章状态：0-编辑；1-发布；2-下架
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 用户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;
    /**
     * 是否推荐
     */
    @TableField(value = "recommend")
    private Integer recommend;
    /**
     * 排序
     */
    @TableField(value = "sort_num")
    private Integer sortNum;
    /**
     * 点赞数
     */
    @TableField(value = "goods_num")
    private Long goodsNum;
    /**
     * 分享数
     */
    @TableField(value = "share_num")
    private Long shareNum;
    /**
     * 阅读数
     */
    @TableField(value = "read_num")
    private Long readNum;

    /**
     * 是否删除；0-否；1-是
     */
    @TableField(value = "remove",fill = FieldFill.INSERT)
    @TableLogic(value = "0",delval = "1")
    private Integer remove;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}